import { mapState } from 'vuex'

export default {
  computed: {
    ...mapState('app', {
      $site: 'site',
      $biz: 'biz'
    })
  },
  watch: {
    $site: {
      handler(newValue, oldValue) {
        this.resetData && this.resetData()
      }
    },
    $biz: {
      handler(newValue, oldValue) {
        this.resetData && this.resetData()
      }
    }
  }
}
